<?php
/**
 * Created by PhpStorm.
 * User: 氓羽
 * Date: 2018-5-2
 * Time: 11:02
 */
//url形式  index.php?controller=控制器名&method=方法名
//http://localhost/PHP_Study/07-MVC-Smarty/index.php?controller=test&method=show
require_once('function.php');
require_once('config.php');
$view = ORG('Smarty/', 'Smarty', $viewconfig);
$controller = $_GET['controller'];
$method = $_GET['method'];
C($controller, $method);